home *** CD-ROM | disk | FTP | other *** search
- # RCSfile: csh-env $Revision: 1.2 $ $Date: 1995/05/22 11:14:56 $
- # Environment setup file for IXI Visual Tcl 1.0 C1 (csh version)
- #
-
- # Vtcl top-level directory
- set VTCLTOP=`dirname $VTCL_HOME`
- set VTCLTOP=`dirname $VTCLTOP`
-
- # Environment variable for tcl
- setenv TCL_LIBRARY $VTCLTOP/usr/lib/tcl
-
- # Search path for Vtcl app-defaults
- if ( $?XFILESEARCHPATH == 0 ) then
- setenv XFILESEARCHPATH $VTCLTOP/usr/lib/X11/app-defaults/%N
- else
- setenv XFILESEARCHPATH $VTCLTOP/usr/lib/X11/app-defaults/%N:$XFILESEARCHPATH
- endif
-
- # Set up help files
- set base="vtcl"
-
- # Set up the information in the user's help config files.
- # If the files (and parent directories) don't exist, they are created.
- # If the files are not writeable, we assume the administrator or user
- # wants to manually modify them.
-
- if ( ! -d $HOME/.ixi ) then
- mkdir $HOME/.ixi
- endif
-
- if ( ! -d $HOME/.ixi/mos ) then
- mkdir $HOME/.ixi/mos
- endif
-
- set TEXTFILE=$HOME/.ixi/mos/books
- set HANDLE=$base
- set FILEPATH=$VTCL_HOME/doc/%N/%L/%T%S
-
- if ( ! -f $TEXTFILE ) then
- touch $TEXTFILE
- chmod u+w $TEXTFILE
- if ( ! $?trace == 0 ) then
- echo " trace: Created $TEXTFILE"
- endif
- endif
-
- if ( -w $TEXTFILE ) then
- grep "^${HANDLE}[ ]" $TEXTFILE > /dev/null
- set RESULT=$status
- if ( $RESULT == 0 ) then
- /bin/mv $TEXTFILE $TEXTFILE.old
- sed "s@^${HANDLE}[ ].*@$HANDLE $FILEPATH@" \
- <$TEXTFILE.old >$TEXTFILE
- /bin/rm -f $TEXTFILE.old
- if ( ! $?trace == 0 ) then
- echo " trace: Altered $HANDLE in $TEXTFILE"
- endif
- else
- echo $HANDLE $FILEPATH >> $TEXTFILE
- if ( ! $?trace == 0 ) then
- echo " trace: Added $HANDLE in $TEXTFILE"
- endif
- endif
- endif
-
-
-
-